﻿using System;
using System.Collections.Generic;
using System.Text;


public class SysConfig
{
    public string SourceServer { get; set; }
    public string SourceAccount { get; set; }
    public string SourcePWD { get; set; }
    public string SourceDatabaseName { get; set; }
    /// <summary>
    /// 系统名称
    /// </summary>
    public string SysName { get; set; }
    /// <summary>
    /// 是否四舍五入
    /// </summary>
    public int IsChoice { get; set; }

    /// <summary>
    /// 销售上报频率
    /// </summary>
    public int SalesRate { get; set; }

    /// <summary>
    /// 营业员下载频率
    /// </summary>
    public int EmployeeRate { get; set; }

    /// <summary>
    /// 商品档案下载频率
    /// </summary>
    public int SpdaRate { get; set; }

    /// <summary>
    /// WebService  Url
    /// </summary>
    public string WebService { get; set; }
    public string WebApi { get; set; }
}

public class Sale
{
    /// <summary>
    /// 现金
    /// </summary>
    public string Xj { get; set; }
    /// <summary>
    /// 折扣
    /// </summary>
    public string Zk { get; set; }

    public decimal DZk { get; set; }
    /// <summary>
    /// 找零
    /// </summary>
    public string Zl { get; set; }
    /// <summary>
    /// 应收
    /// </summary>
    public string Ys { get; set; }

    /// <summary>
    /// 微信
    /// </summary>
    public string Wx { get; set; }
    /// <summary>
    /// 支付宝
    /// </summary>
    public string Zfb { get; set; }
    /// <summary>
    /// 银行卡
    /// </summary>
    public string Yhk { get; set; }
    /// <summary>
    /// 代金券
    /// </summary>
    public string Djq { get; set; }


    /// <summary>
    /// 实收
    /// </summary>
    public string Ss { get; set; }

    /// <summary>
    /// 实收金额
    /// </summary>
    public string SsJe { get; set; }

    /// <summary>
    /// 会员积分
    /// </summary>
    public decimal Hyjf { get; set; }

    /// <summary>
    /// 会员余额
    /// </summary>
    public decimal Zhye { get; set; }

    /// <summary>
    /// 本次积分
    /// </summary>
    public string Bcjf { get; set; }

    /// <summary>
    /// 会员卡消费
    /// </summary>
    public string Hykxf { get; set; }

    /// <summary>
    /// 销售单号
    /// </summary>
    public string Xsdh { get; set; }

    /// <summary>
    /// 有余额
    /// </summary>
    public bool BeYe { get; set; }
}

public class LoginInfo
{
    /// <summary>
    /// 制单人
    /// </summary>
    public string Zdr
    {
        get;
        set;

    }

    /// <summary>
    /// 权限
    /// </summary>
    public int Power { get; set; }

    /// <summary>
    /// 店面编号
    /// </summary>
    public string Dmbh
    {
        set;
        get;
    }
    /// <summary>
    /// 店面名称
    /// </summary>
    public string Dmmc
    {
        set;
        get;
    }

    /// <summary>
    /// 仓库编号
    /// </summary>
    public string Ckbh
    {
        get;
        set;
    }
    /// <summary>
    /// 仓库名称
    /// </summary>
    public string Ckmc
    {
        get;
        set;
    }
    /// <summary>
    /// 营业员编号
    /// </summary>
    public string Yyybh
    {
        set;
        get;
    }
    /// <summary>
    /// 营业员名称
    /// </summary>
    public string Yyymc
    {
        set;
        get;
    }


    /// <summary>
    /// 收银员编号
    /// </summary>
    public string Syybh
    {
        set;
        get;
    }
    /// <summary>
    /// 收银员名称
    /// </summary>
    public string Syymc
    {
        set;
        get;
    }

}


public class Hy_Entity
{
    /// <summary>
    /// 会员编号(此处为业务方便 采用 卡号)
    /// </summary>
    public string Hybh
    {
        set;
        get;
    }
    /// <summary>
    /// 会员名称
    /// </summary>
    public string Hymc
    {
        set;
        get;
    }

    /// <summary>
    /// 会员类型
    /// </summary>
    public string Hylx
    {
        get;
        set;
    }
    /// <summary>
    /// 会员积分 余额
    /// </summary>
    public decimal Hyjf
    {
        get;
        set;
    }

    /// <summary>
    /// 会员积分 消费
    /// </summary>
    public string Hykxf
    {
        get;
        set;
    }



    /// <summary>
    /// 会员卡号
    /// </summary>
    public string Hykh
    {
        get;
        set;
    }

    /// <summary>
    /// 本次积分
    /// </summary>
    public string Bcjf
    {
        get;
        set;
    }

    /// <summary>
    /// 会员账号余额
    /// </summary>
    public decimal Zhye
    {
        get;
        set;
    }

    /// <summary>
    /// 最近消费积分
    /// </summary>
    public string Zjxfjf
    {
        get;
        set;
    }

    /// <summary>
    /// 会员折扣
    /// </summary>
    public string Hyzk
    {
        get;
        set;
    }

}
///// <summary>
///// 应收(未打折时候)
///// </summary>
//public string Ys
//{
//    set;
//    get;
//}

///// <summary>
///// 实收
///// </summary>
//public string Ss
//{
//    set;
//    get;
//}


///// <summary>
///// 实收金额
///// </summary>
//public string SsJe
//{
//    set;
//    get;
//}

///// <summary>
///// 现金
///// </summary>
//public string Xj
//{
//    set;
//    get;
//}

///// <summary>
///// 找零
///// </summary>
//public string Zl
//{
//    set;
//    get;
//}

///// <summary>
///// 微信
///// </summary>
//public string Wx { get; set; }
///// <summary>
///// 支付宝
///// </summary>
//public string Zfb { get; set; }
///// <summary>
///// 银行卡
///// </summary>
//public string Yhk { get; set; }
///// <summary>
///// 代金券
///// </summary>
//public string Djq { get; set; }

///// <summary>
///// 欠款
///// </summary>
//public string Qk
//{
//    set;
//    get;
//}

public class SaleStatus
{
    /// <summary>
    /// 应收金额
    /// </summary>
    public decimal YS { get; set; }

    /// <summary>
    /// 退货
    /// </summary>
    public bool TH { get; set; }

    /// <summary>
    /// 会员积分
    /// </summary>
    public decimal Hyjf { get; set; }
    /// <summary>
    /// 会员卡号
    /// </summary>
    public string Hykh { get; set; }
    /// <summary>
    /// 会员余额
    /// </summary>
    public decimal Zhye { get; set; }


}
//
public class PosFieldDetail
{
    /// <summary>
    /// 字段名称(显示名称)
    /// </summary>
    public string FieldName { get; set; }
    /// <summary>
    /// 字段值
    /// </summary>
    public string FieldValue { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 宽度
    /// </summary>
    public int Width { get; set; }

}

//会员信息
public class MemberInfo
{
    public string Hykh { get; set; }
    public string Dmbh { get; set; }
    public string Dmmc { get; set; }
    public string Yyymc { get; set; }
}


